package wqh.dao;


import wqh.domain.Channel;
import wqh.pojo.ChannelUpdate;
import wqh.pojo.SelectIPandChannelCondition;

import java.util.List;

public interface ChannelDao {

    Integer selectCount();
    List<Channel> findAllRecord();
    Channel findByIPandChannel(SelectIPandChannelCondition selectIPandChannelCondition);
    List<Channel> findByName(String name);
    Channel findByID(Integer id);

    int insertRecord(Channel channel);

    int updateRecord(Channel channel);
    int updateRecord2(ChannelUpdate channelUpdate);

    int deleteById(Integer id);
    int deleteByClass(Channel channel);

}
